import java.io.*;
import java.lang.Math;
public class Main {
	public static void main(String[]args) {
		double m,n,p1,p2;
		String a="",b="";
		try{
			BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
			a=in.readLine();
			b=in.readLine();
		}catch(IOException e){}
		m=Double.parseDouble(a);
		n=Double.parseDouble(b);
		p1=(m+n)*2;
		p2=m*n;
        System.out.println(p2);
        System.out.println(p1);
	}

}
